﻿
<div>
    <form name="notificationManageCreateOrEditForm" role="form" novalidate class="form-validation">
        <div class="modal-header clearfix">
            <h4 class="modal-title pull-left">
                <span ng-if="!vm.disputeType.id">@L("CreateNotification")</span>
            </h4>
            @*<div class="pull-right">
                    <div class="form-group form-md-line-input form-md-floating-label no-hint mrshen3">
                        <div class="md-checkbox-list clearfix" style="width: 70px;">
                            <div class="pull-left" style="width: 40px;">全选</div>
                            <div class="md-checkbox pull-right">
                                <input id="all" class="md-check" type="checkbox" name="all" ng-model="vm.select_all" ng-click="vm.selectAll()">
                                <label for="all">
                                    <span class="inc"></span>
                                    <span class="check"></span>
                                    <span class="box"></span>
                                </label>
                            </div>
                        </div>
                    </div>
                </div>*@
        </div>
        <div class="modal-body">
            @*<div style="max-height: 400px;overflow-y: auto;">
                    <div class="form-group form-md-line-input form-md-floating-label no-hint mrshen3" data-ng-repeat="user in vm.userList">
                        <div class="md-checkbox-list">
                            <div class="md-checkbox">
                                <input id="{{user.id}}" class="md-check" type="checkbox" name="{{user.name}}" ng-model="vm.m[user.id]" ng-checked="vm.select_one" ng-click="vm.selectOne(vm.m[user.id])">
                                <label for="{{user.id}}">
                                    <span class="inc"></span>
                                    <span class="check"></span>
                                    <span class="box"></span>
                                    {{user.name}}
                                </label>
                            </div>
                        </div>
                    </div>
                </div>*@

            <div class="form-group form-md-line-input form-md-floating-label no-hint">
                <input type="text" class="form-control" ng-model="vm.title">
                <label>标题</label>
            </div>

            <div class="form-group form-md-line-input form-md-floating-label no-hint">

                <div class="form-group form-md-line-input form-md-floating-label no-hint mrshen3">
                    <select name="TownID" ng-model="vm.requestParams.townID" class="form-control edited ng-pristine ng-valid ng-not-empty ng-touched" ng-change="vm.bindArea(vm.requestParams.townID)" required>
                        <option ng-repeat="x in vm.townList" value="{{x.id}}" ng-selected="vm.townID==x.id">{{x.title}}</option>
                    </select>
                    <label>@L("TownID")</label>
                </div>

                <div class="form-group form-md-line-input form-md-floating-label no-hint mrshen3">
                    <select name="AreaID" class="form-control edited ng-pristine ng-valid ng-not-empty ng-touched" ng-model="vm.requestParams.areaID" ng-change="vm.bindVillage(vm.requestParams.areaID)">
                        <option ng-repeat="x in vm.areaList" value="{{x.id}}" ng-selected="vm.areaID==x.id">{{x.title}}</option>
                    </select>

                    <label>@L("AreaID")</label>
                </div>

                <div class="form-group form-md-line-input form-md-floating-label no-hint mrshen3" style="width: 32%;margin-right: 0 !important;">
                    <select name="VillageID" class="form-control edited ng-pristine ng-valid ng-not-empty ng-touched" ng-model="vm.requestParams.villageID">
                        <option ng-repeat="x in vm.villageList" value="{{x.id}}" ng-selected="vm.villageID==x.id">{{x.title}}</option>
                    </select>
                    <label>@L("VillageID")</label>
                </div>
            </div>

            <div class="form-group form-md-line-input form-md-floating-label no-hint">
                <div class="ueditor" ng-model="vm.remark" style="width: 100%;"></div>
            </div>


        </div>
        <div class="modal-footer">
            <button ng-disabled="vm.saving" type="button" class="btn btn-default" ng-click="vm.cancel()">@L("Cancel")</button>
            <button type="submit" button-busy="vm.saving" busy-text="@L("SavingWithThreeDot")" class="btn btn-primary blue" ng-click="vm.save()" ng-disabled="notificationManageCreateOrEditForm.$invalid"><i class="fa fa-save"></i> <span>@L("Save")</span></button>
        </div>
    </form>
</div>